//
//  ViewController.m
//  加密解密
//
//  Created by CHL on 2017/8/9.
//  Copyright © 2017年 CHL. All rights reserved.
//

#import "ViewController.h"

#import "NSData+AES.h"
#import "NSData+Base64.h"
#import "MD5.h"


@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    NSString * string = @"Hello World";
    
    NSString * encodeStr = [NSData base64EncodedWithString:string];
    
    NSLog(@"encodeStr:%@",encodeStr);
    
    NSString * decryptStr = [NSData base64DecryptString:encodeStr];
    
    NSLog(@"decryptStr:%@",decryptStr);
}




@end
